package com.shi.yoyoshop.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shi.yoyoshop.bean.Order;

import java.util.List;

/**
 * @author 20556
 * @description 针对表【order】的数据库操作Service
 * @createDate 2024-01-05 15:53:54
 */
public interface OrderService extends IService<Order> {
    List<Order> getOrderListByUserId(Integer userId);
    Order getOrderById(Integer orderId);

    void saveOrder(Order order);

    void updateOrderById(Order order);

    IPage<Order> getOrderListByStatusWithPage(Page<Order> orderPage, Integer status);
}
